package com.example.housingRentalSystem;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

@EnableWebMvc
@SpringBootApplication
@MapperScan("com.example.housingRentalSystem.mapper")
@EnableTransactionManagement // 确保启用事务管理
@ComponentScan(basePackages = "com.example.housingRentalSystem")
public class HousingRentalSystemApplication {

    public static void main(String[] args) {
        SpringApplication.run(HousingRentalSystemApplication.class, args);
    }

}
